year = 2024
month = 12
if month in {1,3,5,7,8,10,12}:
    print("31")
elif month == 2:
    print("29") # 闰年二月份的天数
else:
    print("30")